package com.redpacketcover.rc.goods;

import com.redpacketcover.rc.base.BaseResponseBean;
import com.redpacketcover.rc.bean.*;

import java.util.HashMap;
import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface GoodsApiService {

    /**
     * 查询商品列表
     * */
    @POST("/saiban/goods/list")
    Observable<BaseResponseBean<List<GoodsRecord>>> getGoodsList(@QueryMap HashMap<String, Object> requestBody);

    /**
     * 查询商品详情
     * */
    @POST("/saiban/goods/details")
    Observable<BaseResponseBean<GoodsRecord>> getGoodsDetail(@QueryMap HashMap<String, Object> requestBody);

    /**
     * 查询购物车
     * */
    @POST("/saiban/sc/list")
    Observable<BaseResponseBean<GoodsRecord>> getCartsList(@QueryMap HashMap<String, Object> requestBody);
}
